<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="java.text.SimpleDateFormat,java.text.DateFormat,java.util.Date"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<%
	Date now = new Date();
	DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	String nowStr = df.format(now);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>平台详情页面</title>
<link rel="stylesheet" href="${ctx}/static/css/Master.css" />
<link rel="stylesheet" href="${ctx}/static/css/lq.datetimepick.css" />
<link href="${ctx}/static/css/validation.css" type="text/css" rel="stylesheet"/>
<link rel="stylesheet" href="${ctx}/static/css/jquery-labelauty.css"/>
<script src="${ctx}/static/js/jquery-labelauty.js"></script>
<script src="${ctx}/static/js/jquery-1.8.0.min.js"></script>
<script src="${ctx}/static/js/simpletooltip.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jsScroller.js"></script>
<script src="${ctx}/static/js/selectUi.js"></script>
<script type="text/javascript"src="${ctx}/static/js/jquery.uploadify.v2.0.3.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/swfobject.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/static/js/messages_cn.js"></script>
<script src="${ctx}/static/plugins/layer/layer.js"></script>
<%-- 基础js,所有页面都需要引入此js,依赖layer.js --%>
<script src="${ctx}/static/js/common/base.js"></script>
<style type="text/css">
#content {
	width: 100%;
	background: #525252;
	position: absolute;
	left: 0;
	top: 0px;
	bottom: 1px;
}

#main_right {
	margin: 0px;
	height: 100%;
	overflow: auto;
	border-top: 1px solid #717171;
	background: #fff;
}
</style>

<script>
$(function(){
	   var form;
	   $("#form1").validate({
			   
	       rules:{
	    	   audAdvices:{
	                   required:true,
	                   maxlength:500
	                   
	               }
	           }
	   
	    
		   });
	   
	   
		   	    
	   });
	   
	    function submit(id){
		   var form=$("#form1");
		   $("#agreeStatus").val(id);
		   if(!form.valid()){
			   return false;
		   }
		   
		   $.ajax({    
			    url:"${ctx}/audit/dealAudit",
			    data:form.serialize(),    
			    type:"post",    
			    cache:false,    
			    dataType:"json",
			    async:true, //默认为true 异步    
			    success:function(data) {
			       debugger;
			       top.layer.msg(data,{},function()
			    		   {
			    	   window.location="${ctx}/audit/auditListNo";
			    		   });
			     }
			});
	 
	   }
 </script>
</head>

<body>
	<div class="wrapper">
		<section id="content"> <section id="main_right"> <section
			class="boxRight">
		<div class="OrgTit">查看运营商</div>
		<div class="context">
			<div class="add_firstmenu">
			<form action=""  method="post" id="form1">
				<dl>
					<dt>
						<strong class="org">基本信息</strong>
					</dt>
					<dd></dd>
				</dl>
				<dl>
					<dt>平台名称</dt>
					<dd class="org">${org.orgName }</dd>
				</dl>
				<dl>
					<dt>公司注册名称</dt>
					<dd class="org">${org.comRegName }</dd>
				</dl>
				<dl>
					<dt>所在地</dt>
					<dd class="org">${org.provinceName }${org.cityName
						}${org.areaName }</dd>
				</dl>
				<dl>
					<dt>详细地址</dt>
					<dd class="org">${org.address }</dd>
				</dl>
				<dl>
					<dt>法人姓名</dt>
					<dd class="org">${org.corpName }</dd>
				</dl>
				<dl class="two">
					<dt>法人身份证号码</dt>
					<dd class="org">${org.corpIdCardNumber }</dd>
					<dt>法人身份证到期时间</dt>
					<dd class="org">${org.corpIdCareEndDate }</dd>
				</dl>
				<dl class="two">
					<dt>营业执照号码</dt>
					<dd class="org">${org.businessLicenseNumber }</dd>
					<dt>营业执照到期时间</dt>
					<dd class="org">${org.businessLicenseEndDate }</dd>
				</dl>
				<dl class="two">
					<dt>组织代码证号码</dt>
					<dd class="org">${org.orgNumber }</dd>
					<dt>机构代码到期时间</dt>
					<dd class="org">${org.orgEndDate }</dd>
				</dl>
				<dl class="two">
					<dt>税务登记证号码</dt>
					<dd class="org">${org.taxRegCertifNumber }</dd>
					<dt>税务登记证到期时间</dt>
					<dd class="org">${org.taxRegCertifEndDate }</dd>
				</dl>
				<dl>
					<dt>服务热线</dt>
					<dd class="org">${org.serviceHotline }</dd>
				</dl>
				<dl>
					<dt>
						<strong class="org">合同信息</strong>
					</dt>
					<dd class="org"></dd>
				</dl>
				<dl class="two">
					<dt>合同编号</dt>
					<dd class="org">${org.contract.contractNumber }</dd>
					<dt>合同签署日期</dt>
					<dd class="org">${org.contract.contractSignDate }</dd>
				</dl>
				<dl class="two">
					<dt>合同开始日期</dt>
					<dd class="org">${org.contract.contractSignBeginDate }</dd>
					<dt>合同到期日期</dt>
					<dd class="org">${org.contract.contractSignEndDate }</dd>
				</dl>
				<dl class="two">
					<dt>合同签署人姓名</dt>
					<dd class="org">${org.contract.contractSignName }</dd>
					<dt>负责人手机号码</dt>
					<dd class="org">${org.contract.contractSignNumber }</dd>
				</dl>
				<dl class="two">
					<dt>广告分润</dt>
					<dd class="org">${org.contract.advPercent }%</dd>
					<dt>交易分润</dt>
					<dd class="org">${org.contract.dealPercent }%</dd>
				</dl>

				<dl>
					<dt>
						<strong class="org">图片资料</strong>
					</dt>
					<dd class="org"></dd>
				</dl>
				<dl class="two sf">
					<dt>法人身份证</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 1 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
					<dt>营业执照</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 2 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
				</dl>
				<dl class="two sf">
					<dt>税务登记证</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 3 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
					<dt>机构代码证</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 4 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
				</dl>

				<dl class="two sf">
					<dt>协议资料</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 5 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
				</dl>

				<dl class="two sf">
					<dt>LOGO</dt>
					<dd class="org">
						<div class="ddpic">
							<c:forEach var="dd" items="${org.fileLists }">
								<c:if test="${dd.filType == 6 }">
									<div class="gg_img">
										<code url="${dd.filSerPath}" id="${dd.filId }"
											onclick="removeImg(this);">
											<img src="${fUrl }${dd.filSerPath}" alt="" width="136px"
												height="80px" />
										</code>
									</div>
								</c:if>
							</c:forEach>
						</div>
					</dd>
				</dl>

				<dl>
							<dt>
								<strong class="org">审核意见</strong>
							</dt>
							<dd>
								<div class="textareaBox w2">
								   <input type="hidden" name="orgId" value="${org.orgId}">
								     <input type="hidden" name="status" value="${org.status}">
								      <input type="hidden" name="agreeStatus" id="agreeStatus">
									<textarea name="audAdvices"></textarea>
									<div class="textarea_tip">字数限制，最多输入500个字</div>
								</div>
							</dd>
						</dl>
			</form>
						<div class="combtn"><a href="javascript:void(0);" onclick="history.back();">返回</a><a href="javascript:void(0);" onclick="submit(-1)">驳回</a><a href="javascript:void(0);" onclick="submit(2)">通过</a></div>
			</div>
		</div>

		</section> </section> <!--/左边--> </section>
	</div>
</body>
</html>
